<?php

define( 'SLASH', DIRECTORY_SEPARATOR );
define( 'ROOT_PATH', realpath( dirname(__FILE__) ) );

define( 'CONTROLLER_PATH', ROOT_PATH . SLASH . 'c' );
define( 'HELPER_PATH', ROOT_PATH . SLASH. 'h' );
define( 'MODEL_PATH', ROOT_PATH . SLASH . 'm' );
define( 'VIEW_PATH', ROOT_PATH . SLASH . 'v' );
define( 'EXTERN_PATH', ROOT_PATH . SLASH . 'extern' );
define( 'DATA_PATH', ROOT_PATH . SLASH . 'data' );
define( 'PRIVATE_DATA_PATH', ROOT_PATH . SLASH . 'private_data' );
define( 'TEMPLATES_PATH', ROOT_PATH . SLASH . 't');
define( 'PARTIAL_TEMPLATES_PATH', TEMPLATES_PATH . SLASH . 'Partial');
define( 'TWIG_CACHE', PRIVATE_DATA_PATH . SLASH . 'TwigCache');

define( 'HOSTNAME', 'kolombb.z' );
define( 'DEV_SERVER', true );
define( 'ALLOW_CAPS_URL', true);

define( '_3MINS', 180 );
define( '_5MINS', 300 );
define( '_1HOUR', 3600 );
define( '_24HOURS', 86400 );
define( '_1YEAR', 31536000 );

require_once( 'common.php' );
require_once( EXTERN_PATH . SLASH . 'autoload' . SLASH . 'Autoload.class.php' );

$loader = Autoload::getInstance( PRIVATE_DATA_PATH . SLASH . 'classes.yml' );

if (DEV_SERVER)
{
	$loader->removeCache();
}

$loader->addDirectory( CONTROLLER_PATH );
$loader->addDirectory( HELPER_PATH );
$loader->addDirectory( MODEL_PATH );
$loader->addDirectory( VIEW_PATH );
$loader->addDirectory( EXTERN_PATH);

$loader->register();

config_set('MYSQL', array(
	'server' => '',
	'username' => '',
	'password' => '',
	'db' => '',
	'prefix' => '',
));

config_set('MEMCACHE', array(
	'enabled' => true,
	'server' => 'localhost',
	'port' => 11211,
	'prefix' => 'mfw_',
));

mb_internal_encoding("UTF8");

ini_set('display_errors',1);

error_reporting(E_ALL ^ E_NOTICE ^ E_WARNING);

?>
